package org.budo.ehcache.config.annotation.entity;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
public class EhCacheConfigEntity implements Serializable {
    private static final long serialVersionUID = -1950603626908209137L;

    private String cacheName;

    private Integer timeToLiveSeconds;

    private Integer timeToIdleSeconds;

    private Integer maxElementsInMemory;

    private Boolean statistics;

    private Boolean graph;

    private Class<?> cacheEventListenerFactory;
    
    private Integer maxElementsOnDisk; 

    @Override
    public String toString() {
        return super.toString() + " [cacheName=" + cacheName //
                + ", timeToLiveSeconds=" + timeToLiveSeconds //
                + ", timeToIdleSeconds=" + timeToIdleSeconds //
                + ", maxElementsInMemory=" + maxElementsInMemory //
                + ", statistics=" + statistics //
                + ", graph=" + graph //
                + ", cacheEventListenerFactory=" + cacheEventListenerFactory + "]";
    }
}